import sys

i = input()

print(i.lower())
print(i.upper())
print(i.title())